<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
     <script src="https://cdn.jsdelivr.net/npm/crypto-js@4.1.1/crypto-js.min.js"></script>

</head>
<body>
<label for="info">输入信息</label><input type="text" id="info">
<button id = "btn1">触发js</button>
<button id = "btn2">触发自定义函数</button>
<button id = "btn3">触发混淆函数</button>
<button id = "btn4">触发补环境</button>
<button id = "btn5">触发AES加密</button>




<script>
    let btn1 = document.getElementById('btn1');
    let info = document.getElementById('info');

    btn1.onclick = function () {
        let info_base64 = window.btoa(info.value);
        axios.get('https://httpbin.org/get', {
            params: {
                ID: 12345,
                info:info_base64
            }
        })
            .then(function (response) {
                console.log(response);
            })
            .catch(function (error) {
                console.log(error);
            })
            .finally(function () {
                // 总是会执行
            });
    }










    function shuffleString(str) {
        // 将字符串拆分为字符数组（支持 Unicode 字符，如 emoji）
        const chars = [...str];
        //  Fisher-Yates 核心逻辑：从后往前交换
        for (let i = chars.length - 1; i > 0; i--) {
            // 生成 [0, i] 范围的随机索引
            const randomIndex = Math.floor(Math.random() * (i + 1));
            // 交换当前字符与随机索引字符
            [chars[i], chars[randomIndex]] = [chars[randomIndex], chars[i]];
        }
        // 拼接回字符串并返回
        return chars.join('')

    }


       let btn2 = document.getElementById('btn2');

    btn2.onclick = function () {
        let info_base64 = shuffleString(info.value);
        axios.get('https://httpbin.org/get', {
            params: {
                ID: 12345,
                info:info_base64
            }
        })
            .then(function (response) {
                console.log(response);
            })
            .catch(function (error) {
                console.log(error);
            })
            .finally(function () {
                // 总是会执行
            });
    }




    function _0x1955(_0x2d994c,_0x228c49){const _0x3b81f9=_0x3b81();return _0x1955=function(_0x195583,_0x538bdd){_0x195583=_0x195583-0xab;let _0x12dfab=_0x3b81f9[_0x195583];return _0x12dfab;},_0x1955(_0x2d994c,_0x228c49);}function _0x3b81(){const _0x48bdf7=['66951hwWPDW','3349785dltRVR','1071tnGAvu','3133928GtjNOh','9vPLXFv','24900vYVshn','floor','581890RXYUFW','427072KaUutc','198909UFDUKg','random'];_0x3b81=function(){return _0x48bdf7;};return _0x3b81();}(function(_0x5a1606,_0x3a4b09){const _0xdfa591=_0x1955,_0x2ca685=_0x5a1606();while(!![]){try{const _0x237836=-parseInt(_0xdfa591(0xb0))/0x1+parseInt(_0xdfa591(0xae))/0x2+-parseInt(_0xdfa591(0xb2))/0x3+-parseInt(_0xdfa591(0xaf))/0x4+parseInt(_0xdfa591(0xb3))/0x5+-parseInt(_0xdfa591(0xac))/0x6*(parseInt(_0xdfa591(0xb4))/0x7)+parseInt(_0xdfa591(0xb5))/0x8*(parseInt(_0xdfa591(0xab))/0x9);if(_0x237836===_0x3a4b09)break;else _0x2ca685['push'](_0x2ca685['shift']());}catch(_0x3a7c93){_0x2ca685['push'](_0x2ca685['shift']());}}}(_0x3b81,0x5f243));function shuffleString(_0x3a5c9a){const _0x3a848f=_0x1955,_0x25ebdb=[..._0x3a5c9a];for(let _0x5a97f3=_0x25ebdb['length']-0x1;_0x5a97f3>0x0;_0x5a97f3--){const _0xf6cb72=Math[_0x3a848f(0xad)](Math[_0x3a848f(0xb1)]()*(_0x5a97f3+0x1));[_0x25ebdb[_0x5a97f3],_0x25ebdb[_0xf6cb72]]=[_0x25ebdb[_0xf6cb72],_0x25ebdb[_0x5a97f3]];}return _0x25ebdb['join']('');}
     let btn3 = document.getElementById('btn3');

    btn3.onclick = function () {
        let info_base64 = shuffleString(info.value);
        axios.get('https://httpbin.org/get', {
            params: {
                ID: 12345,
                info:info_base64
            }
        })
            .then(function (response) {
                console.log(response);
            })
            .catch(function (error) {
                console.log(error);
            })
            .finally(function () {
                // 总是会执行
            });
    }



    // function say_hi(string){
    //     return "hello world" + string
    // }
    (function(_0x85ee10,_0xc0dc94){var _0x3ce1a3=_0x4d38,_0x20371e=_0x85ee10();while(!![]){try{var _0x36a44d=parseInt(_0x3ce1a3(0x1f6))/0x1*(parseInt(_0x3ce1a3(0x1fa))/0x2)+-parseInt(_0x3ce1a3(0x1f9))/0x3*(-parseInt(_0x3ce1a3(0x1f7))/0x4)+-parseInt(_0x3ce1a3(0x1f0))/0x5*(-parseInt(_0x3ce1a3(0x1f4))/0x6)+-parseInt(_0x3ce1a3(0x1fb))/0x7*(-parseInt(_0x3ce1a3(0x1f3))/0x8)+parseInt(_0x3ce1a3(0x1f1))/0x9+-parseInt(_0x3ce1a3(0x1f8))/0xa+-parseInt(_0x3ce1a3(0x1f2))/0xb;if(_0x36a44d===_0xc0dc94)break;else _0x20371e['push'](_0x20371e['shift']());}catch(_0x3bfe87){_0x20371e['push'](_0x20371e['shift']());}}}(_0x346c,0x9fdf0));function say_hi(_0x5c06a3){var _0x381cf1=_0x4d38;return _0x381cf1(0x1f5)+_0x5c06a3;}function _0x4d38(_0x3b9d47,_0x4615f1){var _0x346c54=_0x346c();return _0x4d38=function(_0x4d38d1,_0x560da5){_0x4d38d1=_0x4d38d1-0x1f0;var _0x3a7dad=_0x346c54[_0x4d38d1];return _0x3a7dad;},_0x4d38(_0x3b9d47,_0x4615f1);}function _0x346c(){var _0x205da9=['24NltPNi','hello\x20world','26HftglE','260200JdajEb','6044040GXQTzT','3QaRYbx','50590hupCQw','226982kaqEHG','373005PuDqIb','6572727XVJXYc','10051019qeJTPp','104Lmjjsa'];_0x346c=function(){return _0x205da9;};return _0x346c();}

      let btn4 = document.getElementById('btn4');

    btn4.onclick = function () {
        let info_base64 = say_hi(info.value);
        axios.get('https://httpbin.org/get', {
            params: {
                ID: 12345,
                info:info_base64
            }
        })
            .then(function (response) {
                console.log(response);
            })
            .catch(function (error) {
                console.log(error);
            })
            .finally(function () {
                // 总是会执行
            });
    }




    function encrypt(string){
        var ciphertext = CryptoJS.AES.encrypt(string, 'secret key 123').toString();
        return ciphertext;
    }


    let btn5 = document.getElementById('btn5');

    btn5.onclick = function () {
        let info_base64 = encrypt(info.value);
        axios.get('https://httpbin.org/get', {
            params: {
                ID: 12345,
                info:info_base64
            }
        })
            .then(function (response) {
                console.log(response);
            })
            .catch(function (error) {
                console.log(error);
            })
            .finally(function () {
                // 总是会执行
            });
    }





</script>


</body>
</html>